class Student(object):
    count = 0
    def __init__(self, name):
        self.name = name
        Student.count+=1
a=Student("xiaohong")
b=Student("xiaoming")
c=Student("xiaohua")
d=Student("xiaogou")
print('学生的总人数为%d'%Student.count)

